package com.arrogames.blondbattle.ui 
{
	import feathers.controls.ScreenNavigator;
	import feathers.motion.transitions.ScreenFadeTransitionManager;
	import starling.animation.Transitions;
	
	/**
	 * ...
	 * @author Robin van den Bogaard
	 */
	public class BBNavigator extends ScreenNavigator {
		
		public static const MAIN_MENU:String = "mainMenu";
		public static const GAME_FIELD:String = "gameField";
		
		private var transitionManager:ScreenFadeTransitionManager;
		
		public function BBNavigator() {
			super();
			
			transitionManager = new ScreenFadeTransitionManager( this );

			transitionManager.duration = .8;
			transitionManager.ease = Transitions.EASE_OUT_BACK;
		}
		
		public function showGameField():void {
			showScreen(GAME_FIELD);
		}
		
		public function showMenu():void {
			showScreen(MAIN_MENU);
		}
		
	}

}